package com.ticket;

public class Window implements Runnable{
    public static int ticketnum=100;
    @Override
    public void run() {
        while (ticketnum>=1) {
            ticketnum--;
            System.out.println("剩余票数为" + ticketnum);
        }
    }
}
